//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { UserWalletLog, UserWalletLogResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooUserWalletLogList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<UserWalletLogResponse>(`/uctoo/user_wallet_log/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooUserWalletLog = async (id: string) => {
  return requestClient.get<UserWalletLog>(`/uctoo/user_wallet_log/${id}`);
};

export const adductooUserWalletLog = async (data: Partial<UserWalletLog>) => {
  return requestClient.post<UserWalletLog>('/uctoo/user_wallet_log/add', data);
};

export const edituctooUserWalletLog = async (data: Partial<UserWalletLog>) => {
  return requestClient.post<UserWalletLog>('/uctoo/user_wallet_log/edit', data);
};

export const deleteuctooUserWalletLog = async (id: string) => {
  return requestClient.post<any>('/uctoo/user_wallet_log/del', { id });
};
